package com.imooc.mall.exception;

import lombok.Data;

@Data
public class MallException extends RuntimeException{

    private Integer code;

    public MallException(Integer code,String message) {
        super(message);
        this.code=code;

    }
    public MallException(String message){
        super(message);
    }
}
